package com.yl.pattern.creatormodel.builder.demo1;

/**
 * @Author 小羊
 * @Date 30/10/2024下午 4:43
 * @ClassName Director
 * @Description 指挥者类
 */
public class Director {
    private Builder builder;

    public Director(Builder builder) {
        this.builder = builder;
    }
    public Bike construct(){
        builder.buildFrame();
        builder.buildSeat();
        return builder.createBike();
    }
}
